package com.ruicar.afs.cloud.channel.grade.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

@Data
@Accessors(chain = true)
@TableName("grade_model_result_modify_log")
@EqualsAndHashCode(callSuper = true)
public class GradeModelResultModifyLog extends Model<GradeModelResultModifyLog> {
    @ApiModelProperty(value = "物理主键id")
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    @ApiModelProperty(value = "修改记录的表名")
    private String tableName;
    @ApiModelProperty(value = "修改表id")
    private Long tableId;
    @ApiModelProperty(value = "修改前分数")
    private BigDecimal beforeScore;
    @ApiModelProperty(value = "修改后分数")
    private BigDecimal afterScore;
    @ApiModelProperty(value = "修改前输入参数")
    private String beforeStr;
    @ApiModelProperty(value = "修改后输入参数")
    private String afterStr;
    @ApiModelProperty(value = "修改前调整分数")
    private BigDecimal beforeAddScore;
    @ApiModelProperty(value = "修改后调整分数")
    private BigDecimal afterAddScore;
    @ApiModelProperty(value = "修改前评级")
    private String beforeGrade;
    @ApiModelProperty(value = "修改后评级")
    private String afterGrade;
    @ApiModelProperty(value = "备注")
    private String remark;
    @ApiModelProperty(value = "修改人")
    private Long updateUser;
    @ApiModelProperty(value = "修改日期")
    private Date updateDate;
}
